<template>
  <el-card class="card">
    <div class="title">
      <span>{{title}}</span>
    </div>
    <!--<div v-for="o in items" :key="o" class="text item">-->
    <!--{{'列表内容 ' + o }}-->
    <!--</div>-->
    <div v-for="item in items" class="content">
      <span>{{item.key}}</span>
      <!--<div class="left-label">{{item.key}}</div>-->
      <div class="right-label">{{item.value}}</div>
    </div>
  </el-card>
</template>

<style scoped>
  .card {
    line-height: 20px;
    text-align: left;
    border-radius: 10px;
    height: 190px;
  }

  .title {
    float: left;
    text-align: center;
    width: 100%;
    font-size: 20px;
    color: #676668;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  }
  .content{
    padding-bottom: 15px;
  }
  /*.left-label{*/
    /*width:50%;*/
    /*text-align:left*/
  /*}*/
  /*.right-label {*/
    /*width: 40px;*/
    /*height: 20px;*/
    /*border-radius: 10px;*/
    /*background-color: #676668;*/
    /*float: right;*/
    /*margin-right: 10px;*/
    /*color: white;*/
    /*text-align: center*/
  /*}*/
  .right-label{
    float:right;
  }
</style>

<script>
  export default {
    name: "DataCard",
    props: {
      title: String,
      items: Array
    },
    data() {
      return {

      }
    }
  }
</script>


